<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script language="javascript">

function goLite(FRM,BTN)
{
   window.document.forms[FRM].elements[BTN].style.color = "#FFFFFF";
   window.document.forms[FRM].elements[BTN].style.filter = "progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr='#ffFFCCAA',EndColorStr='#ffFF8822')";
}

function goDim(FRM,BTN)
{
   window.document.forms[FRM].elements[BTN].style.color = "#FFFFFF";
   window.document.forms[FRM].elements[BTN].style.filter = "progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr='#ffFFAAAA',EndColorStr='#ffFF2222')";
}

</script>

<html>
<head>
  <meta http-equiv="cache-control" content="no-cache">
  <meta http-equiv="pragma" content="no-cache">
  <link type="text/css" rel="stylesheet" href="scheduler.css">
  <title>iScheduler</title>
</head>

<body>
  <div id="header">
    <h1><A href="start"><SPAN>iScheduler</SPAN></A></h1>
    <div id="login">
      <c:choose><c:when test="${empty (user)}"><a href="login.do">&nbsp;Login&nbsp;</a>
      <a href="register.do">&nbsp;Register&nbsp;</a></c:when>
      <c:otherwise><a href="set-password.do">My Account&nbsp;</a>
      <a href="logout.do">&nbsp;Logout</a></c:otherwise></c:choose>
    </div>
  </div>
  
  <div id="nav">
    <ul>
      <li id="${currnet}"><a href="current.do"><span>Current Schedule</span></a></li>
      <li id="${saved}"><a href="saved-schedules.do"><span>Saved Schedules</span></a></li>
      <li id="${create}"><a href="create.do"><span>Create a New Schedule</span></a></li>
      <li id="${search}"><a href="search-courses.do"><span>Search For Courses</span></a></li>
    </ul>
  </div>

  <div id="error">
    <c:forEach var="error" items="${errors}"><p class="error">${error}</p></c:forEach>
    <c:if test="${not (empty (message))}"><p>${message}</p></c:if>
    </div>